package com.go.where.family.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.DonateRetrospectDao;
import com.go.where.family.pojo.DonateRetrospectInfo;
import com.go.where.family.service.DonateRetrospectService;

@Service("donateRetrospectService")
public class DonateRetrospectServiceImpl implements DonateRetrospectService {

	@Resource(name = "donateRetrospectDao")
	private DonateRetrospectDao donateRetrospectDao;

	@Override
	public List<DonateRetrospectInfo> queryList(Map<String, Object> map) {
		return donateRetrospectDao.queryT(map);
	}

	@Override
	public List<String> queryActivityIds() {
		return donateRetrospectDao.queryActivityIds();
	}

	@Override
	public DonateRetrospectInfo queryDonateDetail(String retroId) {
		DonateRetrospectInfo donate = new DonateRetrospectInfo();
		donate.setRetroId(retroId);
		return donateRetrospectDao.queryByPrimaryKey(donate);
	}

}
